package com.stationpc.androidtvrecents

import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.view.View

object TransitionHelper {
    fun animateScale(view: View, hasFocus: Boolean) {
        val scale = if (hasFocus) 1.1f else 1.0f
        AnimatorSet().apply {
            playTogether(
                ObjectAnimator.ofFloat(view, View.SCALE_X, scale),
                ObjectAnimator.ofFloat(view, View.SCALE_Y, scale)
            )
            duration = 150
            start()
        }
    }
}
